package UI;
import javax.swing.JTree;
import javax.swing.tree.DefaultTreeCellRenderer;

import controller.ITreeController;

public class ArbolUI extends javax.swing.JScrollPane{

    /**
	 * 
	 */
	private static final long serialVersionUID = 201204121742L;
	
	private JTree jTree;
	private ITreeController cTree;

    /**
     * Creates new form InterfazPrincipal
     */
    public ArbolUI() {

    	jTree = new javax.swing.JTree();
    	
        javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode("<Foo>");
        jTree.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));

        DefaultTreeCellRenderer renderer = (DefaultTreeCellRenderer)jTree.getCellRenderer();
        
        renderer.setLeafIcon(null);
        renderer.setClosedIcon(null);
        renderer.setOpenIcon(null);
        
        this.setViewportView(jTree);
    }

	public ITreeController getcTree() {
		return cTree;
	}

	public void setcTree(ITreeController cTree) {
		this.cTree = cTree;
	}
}
